#ifndef SLOGIN_H
#define SLOGIN_H

#include <QWidget>
#include <QString>
#include<QProcess>
#include "execsql.h"
#include"admininfo.h"
#include "studentinfo.h"
#include"teacherinfo.h"
#include"chechintable.h"

using namespace std;
namespace Ui {
    class SLogin;
}

class SLogin : public QWidget
{
    Q_OBJECT

public:
    explicit SLogin(QWidget *parent = 0);
    ~SLogin();
    QString str;
    void showsloginW();
    QString m_xid;
    QString m_ScienceID;
    QString m_teacherId;
    QString m_Classid;
    QString m_RoomID;
    QString m_CheckinTime;
   void insert();

signals:
     void siignalslogin();

public slots:
     void slotcheckinW();

private slots:
    void on_pb_stulongin_clicked();
    void on_pb_facelongin_clicked();
    void on_pb_pwdlogin_clicked();
    void on_pb_login_clicked();
    void on_pb_forgetpwd_clicked();

private:
    void initWindow();
    Ui::SLogin *ui;
    QString table_pwd;
    unsigned int actor;
    unsigned int active;
    StudentInfo infoS;
    TeacherInfo infoT;
    AdminInfo infoA;
    ChechinTable *checkinW;
    QProcess pronew;
    QString m_xuehao;

};

#endif // SLOGIN_H
